package com.oracle.service.warehouse;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.oracle.dao.WarehouseDao;
import com.oracle.entity.po.StorePO;
import com.oracle.entity.po.WarehousePO;
import com.oracle.entity.vo.StoreDetailVO;
import com.oracle.entity.vo.StoreVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseServiceImpl extends ServiceImpl<WarehouseDao, WarehousePO> implements WarehouseService {


    @Override
    public List<StoreVO> getStore() {
        return this.baseMapper.getStore();
    }

    @Override
    public List<StoreDetailVO> getStoreDetail(int id) {
        return this.baseMapper.getStoreDetail(id);
    }

    @Override
    public void insertStore(StorePO storePO) {
        this.baseMapper.insertStore(storePO);
    }

    @Override
    public void updateStore(StorePO storePO) {
        this.baseMapper.updateStore(storePO);
    }
}